import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home'
import HomeTea from "@/views/HomeTea.vue";

Vue.use(VueRouter)

const routes = [
    {
        path: "/",
        component: () => import("../views/Login.vue"),
        hidden: false,
    },
    {
        path: '/welcome',
        // redirect: '/welcome',
        name: 'home',
        component: Home,
        children: [
            {
                path: '/welcome',
                name: 'Welcome',
                component: () => import('../views/Welcome.vue')
            },
            {
                path: '/user',
                name: 'User',
                component: () => import('../views/User.vue')
            },
            {
                path: '/transcript',
                name: 'Transcript',
                component: () => import('../views/Transcript.vue')
            },
            {
                path: '/scientificresearchresults',
                name: 'ScientificResearchResults',
                component: () => import('../views/ScientificResearchResults.vue')
            },
            {
                path: '/prereview',
                name: 'PreReview',
                component: () => import('../views/PreReview.vue')
            },
            {
                path: '/dobleblindreview',
                name: 'DoubleBlindReview',
                component: () => import('../views/DoubleBlindReview.vue')
            },
            {
                path: '/reviewrequest',
                name: 'ReviewRequest',
                component: () => import('../views/ReviewRequest.vue')
            },
            {
                path: '/overallblindreview',
                name: 'OverallBlindReview',
                component: () => import('../views/OverallBlindReview.vue')
            },
            {
                path: '/replyresults',
                name: 'ReplyResults',
                component: () => import('../views/ReplyResults.vue')
            },
            {
                path: '/degreeapply',
                name: 'DegreeApply',
                component: () => import('../views/DegreeApply.vue')
            },
        ]
    },
    {
        path: '/welcometea',
        // redirect: '/welcome',
        name: 'hometea',
        component: HomeTea,
        children: [
            {
                path: '/welcometea',
                name: 'WelcomeTea',
                component: () => import('../views/WelcomeTea.vue')
            },
            // {
            //     path: '/usertea',
            //     paperName: 'UserTea',
            //     component: () => import('../views/UserTea.vue')
            // },
            {
                path: '/prereviewtea',
                name: 'PreReviewTea',
                component: () => import('../views/PreReviewTea.vue')
            },
            {
                path: '/dobleblindreviewtea',
                name: 'DoubleBlindReviewTea',
                component: () => import('../views/DoubleBlindReviewTea.vue')
            },
            {
                path: '/reviewrequesttea',
                name: 'ReviewRequestTea',
                component: () => import('../views/ReviewRequestTea.vue')
            },
            {
                path: '/overallblindreviewtea',
                name: 'OverallBlindReviewTea',
                component: () => import('../views/OverallBlindReviewTea.vue')
            },
            {
                path: '/replyresultstea',
                name: 'ReplyResultsTea',
                component: () => import('../views/ReplyResultsTea.vue')
            },
            {
                path: '/degreeapplytea',
                name: 'DegreeApplyTea',
                component: () => import('../views/DegreeApplyTea.vue')
            },
        ]

        // children: [
        //     {
        //         path: '/welcometea',
        //         paperName: 'WelcomeTea',
        //         component: () => import('../views/WelcomeTea.vue')
        //     },
        //     {
        //         path: '/usertea',
        //         paperName: 'UserTea',
        //         component: () => import('../views/UserTea.vue')
        //     },
        //
        //
        //     {
        //         path: '/prereview',
        //         paperName: 'PreReview',
        //         component: () => import('../views/PreReview.vue')
        //     },
        //     {
        //         path: '/dobleblindreview',
        //         paperName: 'DoubleBlindReview',
        //         component: () => import('../views/DoubleBlindReview.vue')
        //     },
        //     {
        //         path: '/reviewrequest',
        //         paperName: 'ReviewRequest',
        //         component: () => import('../views/ReviewRequest.vue')
        //     },
        //     {
        //         path: '/overallblindreview',
        //         paperName: 'OverallBlindReview',
        //         component: () => import('../views/OverallBlindReview.vue')
        //     },
        //     {
        //         path: '/replyresults',
        //         paperName: 'ReplyResults',
        //         component: () => import('../views/ReplyResults.vue')
        //     },
        //     {
        //         path: '/degreeapply',
        //         paperName: 'DegreeApply',
        //         component: () => import('../views/DegreeApply.vue')
        //     },
        // ]
    }
]

const router = new VueRouter({
    routes
})

export default router
